<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>熙康体检系统登录</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        
        .login-container {
            width: 400px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            padding: 30px;
        }
        
        .login-title {
            text-align: center;
            font-size: 24px;
            color: #333;
            margin-bottom: 30px;
            font-weight: normal;
        }
        
        .input-group {
            margin-bottom: 20px;
        }
        
        .input-group label {
            display: block;
            margin-bottom: 8px;
            color: #666;
            font-size: 14px;
        }
        
        .input-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        
        .input-group input:focus {
            border-color: #1890ff;
            outline: none;
        }
        
        .captcha-group {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .captcha-input {
            flex: 1;
            margin-right: 10px;
        }
        
        .captcha-img {
            width: 100px;
            height: 40px;
            background-color: #f0f0f0;
            border-radius: 4px;
            margin-right: 10px;
            object-fit: cover;
        }
        
        .refresh-link {
            color: #1890ff;
            font-size: 12px;
            text-decoration: none;
        }
        
        .remember-me {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .remember-me input {
            margin-right: 8px;
        }
        
        .remember-me label {
            font-size: 14px;
            color: #666;
        }
        
        .login-btn {
            width: 100%;
            padding: 12px;
            background-color: #1890ff;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            margin-bottom: 15px;
        }
        
        .login-btn:hover {
            background-color: #40a9ff;
        }
        
        .forgot-password {
            text-align: center;
        }
        
        .forgot-password a {
            color: #1890ff;
            font-size: 14px;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <h1 class="login-title">熙康体检系统登录</h1>
        
        <form>
            <div class="input-group">
                <label for="username">用户名</label>
                <input type="text" id="username" name="username" placeholder="用户名">
            </div>
            
            <div class="input-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" placeholder="密码">
            </div>
            
            <div class="input-group">
                <label for="captcha">验证码</label>
                <div class="captcha-group">
                    <input type="text" id="captcha" name="captcha" class="captcha-input" placeholder="验证码">
                    <img src="img/yanzheng.png" alt="验证码" class="captcha-img" id="captchaImage">
                    <a href="#" class="refresh-link" id="refreshCaptcha">看不清楚，换一张</a>
                </div>
            </div>
            
            <div class="remember-me">
                <input type="checkbox" id="remember" name="remember">
                <label for="remember">自动登录</label>
            </div>
            
            <button type="submit" class="login-btn">登录</button>
            
            <div class="forgot-password">
                <a href="#">忘记密码</a>
            </div>
        </form>
    </div>

    <script>
        // 验证码刷新功能
        document.getElementById('refreshCaptcha').addEventListener('click', function(e) {
            e.preventDefault();
            // 通过添加时间戳参数防止缓存
            const captchaImg = document.getElementById('captchaImage');
            captchaImg.src = 'img/yanzheng.png?t=' + new Date().getTime();
        });
    </script>
</body>
</html>